Recursive certainty equivalent ============================== The explicit recursive-preference alternative has positive continuation utility :math:`U` and a constant risk parameter :math:`\theta`. Its certainty equivalent and one-period discount weight are .. math:: C_t=\left(E_t U_{t+1}^{1-\theta}\right)^{1/(1-\theta)}, \qquad d_{t,t+1}=\beta C_t^\theta U_{t+1}^{-\theta}. The power expression is undefined at :math:`\theta=1`. The correct endpoint is the geometric conditional certainty equivalent, rather than a function of the conditional mean of utility: .. math:: C_t=\exp(E_t\log U_{t+1}),\qquad d_{t,t+1}=\beta C_t/U_{t+1}. A normalized conditional moment ------------------------------- Write :math:`a=1-\theta` and introduce .. math:: M_t=E_t h_a(U_{t+1}),\qquad h_a(u)= \begin{cases} (u^a-1)/a,&a\ne0,\\ \log u,&a=0. \end{cases} The model retains the original power moment :math:`q_t=E_t U_{t+1}^a`. For nonzero constant :math:`a`, :math:`q_t=1+aM_t`. Log certainty is :math:`\ell_t=\log(q_t)/a`, with endpoint :math:`\ell_t=M_t`. The continuation and discount expressions become .. math:: U_t=u(C_t^{\mathrm{cons}})+\beta\exp(\ell_t),\qquad d_{t,t+1}=\beta\exp(\theta\ell_t)U_{t+1}^{-\theta}. The additional moment carries the information that disappears when :math:`q_t=1` at the unit parameter. For a discrete conditional distribution with probabilities :math:`p_j`, its marginal weight satisfies .. math:: \frac{\beta}{p_j}\frac{\partial C_t}{\partial U_j} =\beta C_t^\theta U_j^{-\theta}. This identity includes the geometric endpoint. Stable evaluation ----------------- For positive :math:`u`, the model evaluates the normalized power difference using the exact identity .. math:: u^a-1=(1+u^a)\tanh(a\log(u)/2). Near the unit parameter, with :math:`t=aM_t` and :math:`|t|<1/2`, it uses .. math:: \log(1+t)=2\operatorname{atanh}\left(\frac{t}{2+t}\right). Outside that region it uses the retained positive :math:`q_t` directly. The unit branch uses :math:`M_t`. These are algebraic identities and an analytic endpoint; no series approximation replaces the model equations. The two-point test uses an independent series only as a numerical reference for values extremely close to the endpoint. Scope and example ----------------- The helper ``ez_replication_model`` in the tests repository constructs this explicit alternative. The source benchmark ``ez_rise`` keeps its authored power moment, continuation expression and discount weight, and does not call the helper. It retains :math:`\theta=0.05`, :math:`\eta=2`, the original calibration target and historical references. The helper retains its separately recorded calibration and uses extra moment variables and equations intentionally. Setting :math:`\theta=1` selects the endpoint. Positive continuation utility is required throughout. This example treats the risk parameter as constant. The endpoint checks cover state and shock derivatives, rather than derivatives with respect to the risk parameter. With RISE started, add the tutorial folder to the MATLAB path and run ``recursive_certainty_example(tests_root)``, where ``tests_root`` is the tests repository root. It solves the default and unit-parameter examples to second order and returns continuation, resource and equation residuals. The tests also compare ordinary-calibration physical shock coefficients with the original power representation and check the unchanged historical reference equations that have observable names.